package ge.scenes;

/**
 * 
 * @author Abel
 *	A frame is the unity of the track. It's associate to
 *	one instant of time, and should have the necessary information
 *	for the track where is going to be used.
 */
public class Frame implements Comparable<Frame>
{
	private Double time;
	/**
	 * 
	 * @param time Time associated to the frame
	 */
	public Frame(Double time)
	{
		this.time = time;
	}
	
	/**
	 * 	
	 * @return The associated time
	 */
	public Double getTime()
	{
		return time;
		
	}

	@Override
	public int compareTo(Frame o) {
		return time.compareTo(o.time);
	}
	
	@Override
	public boolean equals(Object f)
	{
		if(f instanceof Frame)
			return time.equals(((Frame)f).time);
		return false;
	}
}
